import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

export default {
  path: '/activity',
  name: 'Activity',
  meta,
  redirect: { name: 'demo-d2-crud-index' },
  component: layoutHeaderAside,
  children: (pre => [{
    path: `list`,
    name: `ActivityList`,
    component: () => import('@/pages/activity/'),
    meta: { ...meta, title: '活动列表' }
  }, {
    path: `organizations`,
    name: `ActivityList`,
    component: () => import('@/pages/activity/organization'),
    meta: { ...meta, title: '活动举办方列表' }
  }])('activity')
}
